<template>
  <view>
    <web-view @message="handlePostMessage" src="http://www.webroadllc.com/gugeMap/map16_57_42.html"></web-view>
  </view>
</template>

<script>
  export default {
    data() {
      return {

      }
    },
    methods: {
      handlePostMessage(event) {
        console.log(event.detail.data);
        if (event.detail.data) {
          uni.setStorageSync("gugeaddress", event.detail.data[0]);
          uni.navigateBack();
        } else {
          uni.navigateBack();
        }
      }
    }
  }
</script>

<style>

</style>
